package tq.com.tqstudent.bean;

import android.text.TextUtils;

/**
 * @Author rames
 * @date 2019/4/10 12:45
 */
public class SimpleBaseBean {
    public int ret;
    public String msg;
    public String fid; // 主要用于头像上传接口

    public String getMsg(){
        return TextUtils.isEmpty(msg) ? (isSuccess() ? "请求成功" : "请求失败") : msg;
    }

    public boolean isSuccess(){
        return ret == 0;
    }
}
